use std::future::Future;
use actix_web::dev::{Service, ServiceRequest};
use actix_web::Error;
use actix_web_httpauth::extractors::basic::BasicAuth;
use actix_web_httpauth::middleware::HttpAuthentication;
use std::ops::Fn;
use std::process::Output;
use actix_web_httpauth::extractors::bearer::BearerAuth;

pub struct HttpBasic;


impl HttpBasic {
    pub async fn validator(req: ServiceRequest, _credentials: BasicAuth) -> Result<ServiceRequest, Error> {
        Ok(req)
    }

    pub async fn validator_bearer(req: ServiceRequest, _credentials: BearerAuth) -> Result<ServiceRequest, Error> {
        Ok(req)
    }
}